﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.DataVisualization.Charting;

namespace KMeansClustering
{
    public partial class thirdForm : Form
    {
        public thirdForm(double[] a)
        {
            InitializeComponent();

               
                double[] y = new double[a.Length];
                double[] x = new double[a.Length];
                for (int i = 0; i < a.Length; i++)
                {
                    y[i] = a[i];
                    x[i] = i + 2;
                }

                chart1.Series["C*"].Points.DataBindXY(x, y);
        }
    }
}
